package repository;

import domain.User;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.context.ApplicationContext;

import java.util.Collection;

/**
 * 用户信息仓库
 * @author jackcfan
 * @date 2021/9/12
 */
@Getter
@Setter
public class UserRepository {
    // 自定义 Bean setter 方法依赖注入
    private Collection<User> users; //

    // 容器对象注入
    private BeanFactory beanFactory;

    private ObjectFactory<ApplicationContext> objectFactory;
}
